#ifndef _FIL_BAD_H_
#define _FIL_BAD_H_

/****************************************************************************
 *
 *            Copyright (c) 2005 by HCC Embedded 
 *
 * This software is copyrighted by and is the sole property of 
 * HCC.  All rights, title, ownership, or other interests
 * in the software remain the property of HCC.  This
 * software may only be used in accordance with the corresponding
 * license agreement.  Any unauthorized use, duplication, transmission,  
 * distribution, or disclosure of this software is expressly forbidden.
 *
 * This Copyright notice may not be removed or modified without prior
 * written consent of HCC.
 *
 * HCC reserves the right to modify this software without notice.
 *
 * HCC Embedded
 * Budapest 1132
 * Victor Hugo Utca 11-15
 * Hungary
 *
 * Tel:  +36 (1) 450 1302
 * Fax:  +36 (1) 450 1303
 * http: www.hcc-embedded.com
 * email: info@hcc-embedded.com
 *
 ***************************************************************************/

#ifdef __cplusplus
extern "C" {
#endif

extern ST_BADBLOCK *gl_badblock; 

extern unsigned char bb_init(unsigned short maxentry);
extern t_bit bb_addbb(t_ba pba);
extern t_bit bb_addreserved(t_ba pba);
extern t_ba bb_setasbb(t_ba pba);
extern t_bit bb_flush(void);
extern unsigned short bb_getmaxreserved(void);

#ifdef __cplusplus
}
#endif

/****************************************************************************
 *
 * end of fil_bad.h
 *
 ***************************************************************************/

#endif	//_FIL_BAD_H_
